# # # # print(-9 // 2) # -4.5再-4到-5之间，取最小的整数，即为-5
# # # # print(9 // 2)
# # # # print(2 ** 4)
# # # # print(2 % 4)
# # # # print(10 % 3)
# # # # print(-10 % 3)
# # # # print(10 %-3)
# # # # print(-10 % -3)

# # # days = 97
# # # print(f"to holiday is {days // 7} weeks, {days% 7} days")
# # # print(13 * 7 + 6)

# # a = 10
# # b = 11
# # print(a is b)
# # b = 10
# # print(a is b)
# # ## is 运算符就是比较两个变量的地址是否相同

# #and运算符----------------如果and前面的表达式是false，那么直接返回false，不然返回and后面的值
# a = True
# b = False
# print(a and b)
# c = 10
# d = 20
# print(c and d)

# #or运算符----------------如果or前面的表达式是true，那么直接返回true，不然返回and后面的值
# a = True
# b = False
# print(a or b)
# c = 10
# d = 20
# print(c or d)
# e = 0
# f = 1
# print(e or f)

# a = 10
# b = 11
# print(a if a >b else b)
# max = a if a > b else b ## 三目运算符 相当于c语言中的 max = a > b ? a: b;
# print(max)

##input()函数输入的数据都是字符串类型，要做运算时需要强转

name = input("name:")
age = input("age:")
print(f"name is {name}, age is {age}")
print(type(age), type(name))
print(18 + int(age))
#可以在输出的时候强转，也可以在输入的时候强转
age = int(input("age:"))
print(18 + int(age))

#于C语言的区别：scanf函数不能再scanf中输入信息，只能再前面用printf输出提示信息， python没有占位符
